﻿@{
   ViewBag.Title = "Add or Update Merchant Notify";
}
@using Helper
<script src="@Url.ContentArea("~/Content/javascript/MerchantNotify.js")" type="text/javascript"></script>
@Html.Action("_AddOrUpdate", "MerchantNotifyManagement", new { id = Model })
<script type="text/javascript">
    ///Document Ready jQuery
    $(document).ready(function () {

        $('#fileupload').fileupload({
            dataType: 'json',
            url: '/Administrator/MerchantNotifyManagement/UploadFiles?dir=Merchant',
            autoUpload: true,
            done: function (e, data) {
                $('#image').html('<img width=\"70px\" height=\"70px\" src="/Media/Merchant/' + data.result.name + '" />');

            }
        }).on('fileuploadprogressall', function (e, data) {
            var progress = parseInt(data.loaded / data.total * 100, 10);
            $('.progress .progress-bar').css('width', progress + '%');
        });
        CKEDITOR.replace("Content", { filebrowserBrowseUrl: '/Content/Filemanager/index.html' });


        var config = {
            '.chosen-select': {},
       
            '.chosen-select-no-single': { disable_search_threshold: 10 },
            '.chosen-select-no-results': { no_results_text: 'Oops, nothing found!' }
        }
        for (var selector in config) {
            $(selector).chosen(config[selector]);
        }

    });
</script>
